<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@ taglib uri="/tags/radioanswers" prefix="radioanswers" %>

<html:form action="/expression" >
	
		<table border="0" align="center" width="75%">
            <tr>
                 <td>&nbsp;</td>
            </tr> 	
            
            <logic:equal name="baseform" property="askQuestion" value="false">
		       <tr>
		           <td>&nbsp;</td>
		       </tr>             
            </logic:equal>
            
                              
            <logic:equal name="baseform" property="askQuestion" value="true">

            <tr>
                <td class="instructions_text">
                	<bean:write name="baseform" property="instructionText"/>
                </td>                 
            </tr>                    
            <tr>
                <td class="leftlabel">
                     Question #: <bean:write name="baseform" property="questionNumber"/>
                </td>                 
            </tr>
            <tr>
                <td>&nbsp;</td>                 
            </tr>  
            <tr>
                <td class="datacenter">
                	<bean:write property="htmlQuestion" name="baseform" filter="false"/>
                </td>                 
            </tr>  
            <tr>
            	<td>
            	 	<fieldset>
            	 		<legend class="legend" align="left">Choose  <span> the answer </span></legend>
	             	 	<radioanswers:display  onClick="checkAnswer('/expression.do?action=checkanswer')"/>
            	 	</fieldset>  
            	 </td>          
            </tr>                 
            <tr> 
                <td>&nbsp;</td>                 
            </tr>                  
            <tr>
                <td>
                	<table>
                		<tr>
                			<td class="rightlabel">
                				<img src="<%=request.getContextPath()%>/image/arrows/arrowright1.gif" border="0">&nbsp;&nbsp;
                				For the next sum, 
                			</td>
                			<td class="rightlabel">
                              click <a href="<%=request.getContextPath()%>/expression.do?action=generate">here</a>                     			
                			</td>
                		</tr>
                	</table>
                </td>                 
            </tr>    
            </logic:equal>     
		</table>  

</html:form>
